package com.telephone.purchase.service.impl;

import com.telephone.purchase.entity.Good;
import com.telephone.purchase.entity.Goods;
import com.telephone.purchase.mapper.GoodMapper;
import com.telephone.purchase.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodMapper goodMapper;
    @Override
    public List<Goods> selectGood() {
        return goodMapper.selectGood();
    }

    @Override
    public Good selectByPrimaryKey(Long goodId) {
        return goodMapper.selectByPrimaryKey(goodId);
    }

    @Override
    public List<Goods> selectGoodByTime() {
        return goodMapper.selectGoodByTime();
    }

    @Override
    public List<Goods> selectGoodClass(Long classifyId) {
        return goodMapper.selectGoodClass(classifyId);
    }
}
